package com.yxw.blog.bean.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yexinwei
 */
@Data
@AllArgsConstructor
public class StandardResponse<T> {
    private Integer code;
    private String msg;
    private T data;

    public StandardResponse(ResponseCode responseCode, T data) {
        this.code=responseCode.getCode();
        this.msg=responseCode.getMsg();
        this.data=data;
    }


}
